package inits

import (
	"day4/config"
	"day4/global"
	"github.com/go-redis/redis/v8"
)

func ExampleNewClient() {
	global.Rdb = redis.NewClient(&redis.Options{
		Addr:     config.Conf.Redis.Addr,
		Password: config.Conf.Redis.Password, // no password set
		DB:       config.Conf.Redis.DB,       // use default DB
	})

	// Output: PONG <nil>
}
